package com.hmsm.sys.daoImpl;

import org.hibernate.Query;
import org.hibernate.Session;

import com.hmsm.server.base.BaseDao;
import com.hmsm.sys.dao.RoleFuncDao;
import com.hmsm.sys.po.RoleFunc;

public class RoleFuncDaoImpl extends BaseDao<RoleFunc, Integer> implements RoleFuncDao {

	@Override
	public void delByFuncId(Integer funcId) {
		String  hql  =  "delete from RoleFunc o where o.funcId = "+funcId;
		Session  session=  this.getSession();
		Query  q=  session.createQuery(""+hql);
		q.executeUpdate();
		session.close();
	}

}
